﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OrderWinform
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

           
        }
          

        private void Form1_Load(object sender, EventArgs e)
        {
           
            List<OrderApp2.Order> orderlist = new List<OrderApp2.Order>()
            {
               
            };


            OrderApp2.OrderItem item1 = new OrderApp2.OrderItem("苹果", 2, 4);
            OrderApp2.Order order1=  new OrderApp2.Order(1, 1, DateTime.Now, "江苏");
            order1.order_addItems(item1);
            orderlist.Add(order1);
            


            orderview.DataSource = orderBindingSource;
            orderBindingSource.DataSource = orderlist;
            

            

        }

        private void button1_Click(object sender, EventArgs e)
        {
            
        }
    }
}
